package com.itheima.printstream;

import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;

public class PrintWriteDemo {
    public static void main(String[] args) throws IOException {
        PrintWriter pw = new PrintWriter(new FileWriter("day29-code\\h.txt"),true);

        pw.println("我爱你");
        pw.print("你好美");
        pw.printf("%s 爱上了 %s","阿珍","阿强");

        pw.close();
    }
}
